home *** CD-ROM | disk | FTP | other *** search
/ Super PC 29 / Super PC 29 (Lotus Word Pro 96 y shareware).iso / spc / util / scan226 / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1995-09-13  |  5.3 KB  |  211 lines

  1. /*
  2.  * Install Script for VirusScan
  3.  * Version: 2.2.5 Scan for DOS
  4.  * Build:  1
  5.  * Updated:  08/30/95  Dmitri Orlov
  6.  * Updated:  07/14/95  Dmitri Orlov
  7.  * Revised:  05/17/95  Kenny Liang
  8.  */
  9.  
  10. @DefineProject
  11.     @Name = "VirusScan"
  12.     @Version = "2.2"
  13.     @OutDrive = C
  14.     @Subdir = "\\MCAFEE"
  15.     @AssumeHardDisk = 1
  16. @EndProject
  17.  
  18.  
  19. @ClearOption(1001)
  20. @ClearOption(1002)
  21. @ClearOption(2001)
  22. @ClearOption(2002)
  23. @ClearOption(3001)
  24. @ClearOption(3002)
  25. @ClearOption(4001)
  26. @ClearOption(4002)
  27. @ClearOption(5000)
  28. @ClearOption(5001)
  29. @ClearOption(9000)
  30. @ClearOption(9001)
  31.  
  32. @DefineVars
  33.     @Drive @SCANDrive = C
  34.     @Dir @SCANDir = "\\MCAFEE\\VIRUSCAN"
  35. @EndVars
  36.  
  37. @Display
  38. @cls
  39.  
  40.           Welcome to McAfee VirusScan Installation!
  41.  
  42.  
  43.       This Install program will copy the VirusScan files to your
  44.          system and update your AUTOEXEC.BAT if you allow it.
  45.  
  46.  
  47.  
  48.           Thank you for purchasing McAfee VirusScan
  49.  
  50.  
  51.  
  52.  
  53.         Press Escape at any time to abort installation
  54.  
  55.      Copyright (c) 1994, 1995 McAfee Associates, Inc..  All right reserved.
  56.  
  57.  
  58.                        @Pause
  59. @EndDisplay
  60.  
  61. GetAll:
  62. @ClearOption(4001)
  63. @ClearOption(4002)
  64. @GetOutDrive @SCANDrive
  65.   @suppress(A)
  66.   @suppress(B)
  67.   @Cls
  68.              VirusScan Installation Drive
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.      This allows you to specify which hard disk or partition to install
  85.      the VirusScan files on.  This includes the program and documentation
  86.      files, along with the other companion files for the program.  The
  87.      next screen will allow you to specify which directory to install
  88.      VirusScan in.
  89. @EndOutDrive
  90.  
  91. @GetSubDir @SCANDir
  92.  In which directory of your @SCANDrive drive should all VirusScan files be installed?
  93.  
  94.  
  95. @EndSubDir
  96.  
  97. @If (@Exists("@SCANDrive:\\@SCANDir\\SCAN.EXE"))
  98.   @Goto Update
  99. @EndIf
  100. @If (@Exists("@SCANDrive:\\@SCANDir\\CLEAN.EXE"))
  101.   @Goto Update
  102. @EndIf
  103. @If (@Exists("@SCANDrive:\\@SCANDir\\VSHIELD.EXE"))
  104.   @Goto Update
  105. @EndIf
  106.  
  107. @Goto SCAN_OK
  108.  
  109. Update:
  110.   @GetOption
  111.   VirusScan appears to be installed in @SCANDrive:@SCANDir.
  112.   Do you wish to update the prior version?
  113.   @Option 4001 = "Yes, Update prior version"
  114.   @Option 4002 = "No,  Select another drive"
  115.   @EndOption
  116.   @If (4002 [= @Option) @Goto GetAll  @EndIf
  117.  
  118. SCAN_OK:
  119.  
  120.  
  121. @If (@Exists("C:\\AUTOEXEC.BAT"))
  122.   @GetOption
  123.             Update Your AUTOEXEC.BAT File
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.   To fully install VirusScan, a few changes should be made to your
  132.   AUTOEXEC.BAT file. Your PATH statement will be updated to include the
  133.   MCAFEE directory, and VShield statements will be added to allow VShield
  134.   to load each time you reboot your machine.
  135.  
  136.   Do you want Install to do this for you?
  137.     @Option 5000 = "Yes, Modify AUTOEXEC.BAT"
  138.     @Option 5001 = "No,  Save sample modification to MCAFEE.BAT"
  139.   @EndOption
  140. @else
  141. @display
  142.   The AUTOEXEC.BAT file cannot be found in your root directory.
  143.   Normal Installation would modify this file to load
  144.   VirusScan's VShield automatically when you reboot your machine
  145.  
  146.   A sample file is provided in @SCANDrive:@SCANDir\VSH.TXT
  147. @pause
  148. @enddisplay
  149. @EndIf
  150. @endif
  151.  
  152.  
  153. /*
  154.  * All information available now, go ahead and copy files
  155.  */
  156.  
  157. CompleteInstall:
  158.   @copy("C:\\AUTOEXEC.BAT","C:\\AUTOEXEC.MCF")
  159.   @If (@Exists("C:\\MCAFEE.BAT"))
  160.     @system("del C:\\MCAFEE.BAT > nul")
  161.   @endif
  162.   @system("echo REM >>  C:\\MCAFEE.BAT")
  163.   @system("echo REM This line loads McAfee VSHIELD >>  C:\\MCAFEE.BAT")
  164.   @system("echo @SCANDrive:@SCANDir\\VSHIELD >>  C:\\MCAFEE.BAT")
  165.   @system("echo REM >>  C:\\MCAFEE.BAT")
  166.   @system("type C:\\AUTOEXEC.BAT >> C:\\MCAFEE.BAT")
  167.   @system("echo REM >>  C:\\MCAFEE.BAT")
  168.   @system("echo REM This line reloads McAfee VSHIELD after your network and keyboard drivers >>  C:\\MCAFEE.BAT")
  169.   @system("echo @SCANDrive:@SCANDir\\VSHIELD /reconnect >>  C:\\MCAFEE.BAT")
  170.   @system("echo REM >>  C:\\MCAFEE.BAT")
  171.   @if (5001 [= @Option)
  172.   @else
  173.     @copy("C:\\MCAFEE.BAT","C:\\AUTOEXEC.BAT")
  174.     @setautoexec
  175.       @Overwrite
  176.       @path = "@SCANDrive:\\@SCANDir;"
  177.     @endautoexec
  178.     @copy("C:\\AUTOEXEC.BAT","C:\\MCAFEE.BAT")
  179.   @endif
  180.   
  181. @If (!(@Exists("@SCANDrive:\\@SCANDir")))
  182.   @MkDir ("@SCANDrive:\\@SCANDir")
  183. @EndIf
  184.  
  185. @MoveCStr(01,01,31," Copying VirusScan for DOS files... ")
  186. @Copy("SCAN.EXE","@SCANDrive:\\@SCANDir\\*.*")
  187. @Copy("SCAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  188. @Copy("NAMES.DAT","@SCANDrive:\\@SCANDir\\*.*")
  189. @Copy("CLEAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  190.   
  191. @DefineDisk
  192.     @Label = "Disk #1"
  193.     @BeginLib SCAN226.001
  194.         @F VSHIELD.DAT @S 214160 @O @SCANDrive:\\@SCANDir\\VSHIELD.DAT
  195.         @F AGENTS.TXT @S 32108 @O @SCANDrive:\\@SCANDir\\AGENTS.TXT
  196.         @F LICENSE.TXT @S 6531 @O @SCANDrive:\\@SCANDir\\LICENSE.TXT
  197.         @F VSHLDCRC.EXE @S 45089 @O @SCANDrive:\\@SCANDir\\VSHLDCRC.EXE
  198.         @F VALIDATE.EXE @S 15958 @O @SCANDrive:\\@SCANDir\\VALIDATE.EXE
  199.         @F VSHEML.EXE @S 30876 @O @SCANDrive:\\@SCANDir\\VSHEML.EXE
  200.         @F REGISTER.TXT @S 3439 @O @SCANDrive:\\@SCANDir\\REGISTER.TXT
  201.         @F CHKVSHLD.EXE @S 18947 @O @SCANDrive:\\@SCANDir\\CHKVSHLD.EXE
  202.         @F VIRUSCAN.TXT @S 240266 @O @SCANDrive:\\@SCANDir\\VIRUSCAN.TXT
  203.         @F WHATSNEW.TXT @S 7521 @O @SCANDrive:\\@SCANDir\\WHATSNEW.TXT
  204.         @F README.TXT @S 55134 @O @SCANDrive:\\@SCANDir\\README.TXT
  205.         @F SCAN831.DOC @S 46592 @O @SCANDrive:\\@SCANDir\\SCAN831.DOC
  206.         @F VSHIELD.EXE @S 207281 @O @SCANDrive:\\@SCANDir\\VSHIELD.EXE
  207.         @F PACKING.LST @S 1876 @O @SCANDrive:\\@SCANDir\\PACKING.LST
  208.     @EndLib
  209. @EndDisk
  210.  
  211.